package com.bm.util;

import com.bm.model.Commodity;

import java.util.ArrayList;
import java.util.List;

public class Goods {

    public static List<Commodity> getAllGoods() {
        List<Commodity> allGoods = new ArrayList<>();
        allGoods.add(Essence());
        allGoods.add(Mask());
        allGoods.add(Lotion());
        allGoods.add(Box());
        allGoods.add(Candle());
        allGoods.add(Watch());
        allGoods.add(Earbuds());
        allGoods.add(PowerBank());
        return allGoods;
    }

    //护肤类
    public static Commodity Essence() {
        return new Commodity("A001", 30);
    }

    public static Commodity Mask() {
        return new Commodity("A002", 50);
    }

    public static Commodity Lotion() {
        return new Commodity("A003", 39);
    }

    //家居类
    public static Commodity Box() {
        return new Commodity("B001", 70);
    }

    public static Commodity Candle() {
        return new Commodity("B002", 40);
    }

    public static Commodity Cushion() {
        return new Commodity("B003", 80);
    }

    //电子类
    public static Commodity Watch() {
        return new Commodity("C001", 80);
    }

    public static Commodity Earbuds() {
        return new Commodity("C002", 30);
    }

    public static Commodity PowerBank() {
        return new Commodity("C003", 30);
    }

}
